Skip to content

Reformat sources with Dart 3.10 - #462

Merged
simolus3 merged 2 commits into
mainfrom
reformat-3.10
Aug 25, 2026
Merged

Reformat sources with Dart 3.10#462
simolus3 merged 2 commits into
mainfrom
reformat-3.10

Conversation

@simolus3

@simolus3 simolus3 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The PowerSync Dart SDK supports Dart 3.10 or newer (as it uses build hooks and depends on versions 3.x of package:sqlite3, which both require that Dart version).

However, it declares a minimum Dart version of 3.6 in its pubspec. To be able to use newer language features and APIs, this raises that to 3.10. This also changes the behavior of the Dart formatter, which automatically adds trailing commas to methods now. I ran dart format in the powersync package.

The only non-whitespace changes in this PR are in test/sync/utils.dart: In checkpointComplete and bucketDescription, we now use a null shorthand (replacing if (subscriptions != null) 'subscriptions': subscriptions with 'subscriptions': ?subscriptions). This fixes analysis warnings.

@simolus3
simolus3 requested a review from LucDeCaf August 21, 2026 10:38
@simolus3
simolus3 merged commit 5c5417f into main Aug 25, 2026
13 checks passed
@simolus3
simolus3 deleted the reformat-3.10 branch August 25, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants